package com.csu.letaobackend.serviceM;


import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.csu.letaobackend.bean.Receiving;
import com.csu.letaobackend.bean.Refundservice;
import com.csu.letaobackend.commom.CommonResponse;
import com.csu.letaobackend.vo.OrderVO;
import com.csu.letaobackend.vo.RefundserviceVO;

import java.util.List;

public interface OrderMService {


      CommonResponse<IPage<OrderVO>> getAllOrders(int pageid, int pagesize, int status);


      CommonResponse<OrderVO> getOrderByOrderId(String orderid);

      CommonResponse<OrderVO> updateOrderStatus(String orderid, int status);

      CommonResponse<RefundserviceVO>  getRefundservice(String orderid);

      CommonResponse<IPage<RefundserviceVO>> getRefundservices(int pageid, int pagesize);

      CommonResponse<Refundservice> addRefundservice(String orderid, String refundreason);

      CommonResponse<Refundservice> refuseRefundservice(String orderid, String refusalreason);

      CommonResponse<List<OrderVO>> getOrdersBySellers(String username, int status);

      CommonResponse<List<OrderVO>> getOrdersByShopId(int shopid, int status);
}
